package com.flesler.stickjoy.mapper
{
	import com.flesler.stickjoy.controller.Controller;
	
	import flash.events.Event;
	
	public final class ControllerInputMapperEvent extends Event
	{
		public static const ADDED:String = 'cimeAdded';
		public static const REMOVED:String = 'cimeRemoved';
		
		private var _controller:Controller;
		
		public function ControllerInputMapperEvent(type:String, controller:Controller)
		{
			super(type);
			
			_controller = controller;
		}

		public function get controller():Controller
		{
			return _controller;
		}
		
		override public function clone():Event
		{
			return new ControllerInputMapperEvent(type, controller);
		}

	}
}